	<?php
	$roomID = $_GET["roomID"];
	
	$con = mysql_connect("localhost","root","");
	if (!$con) {
		die('Could not connect: ' . mysql_error());
	}
	mysql_select_db("ciu196", $con);
	
	$sql = "
	SELECT mode 
	FROM  rooms
	WHERE roomID =  '$roomID'";
	$res = mysql_query($sql,$con);	
		
	if($row = mysql_fetch_row($res))
		echo "Mode: " . $row[0];
	
	else 
		echo "No room found";
	
	mysql_close();
?>